/*
███████╗██╗   ██╗ ██████╗██╗  ██╗
██╔════╝██║   ██║██╔════╝██║ ██╔╝
█████╗  ██║   ██║██║     █████╔╝ 
██╔══╝  ██║   ██║██║     ██╔═██╗ 
██║     ╚██████╔╝╚██████╗██║  ██╗
╚═╝      ╚═════╝  ╚═════╝╚═╝  ╚═╝
*/
package common.JavaBean;

import java.util.Date;

/**
 * 【最终修正】评论JavaBean，严格对应数据库 'reviews' 表。
 */
public class Review {
//
    private int reviewId;
    private int orderId;
    private int userId;
    private int productId;
    private int rating; // 评分: 1-5之间的评分
    private String comment;
    private int status; // 状态: 0-待展示, 1-已展示, 2-用户删除, 3-因订单取消而失效
    private Date createdAt;
    private String username;
    private String productName;

    // 无参构造
    public Review() {
    }
  //jiangzhizho
    // --- Standard Getters and Setters ---
    //jaingzhiaho
    public int getReviewId() { return reviewId; }
    public void setReviewId(int reviewId) { this.reviewId = reviewId; }
    public int getOrderId() { return orderId; }
    public void setOrderId(int orderId) { this.orderId = orderId; }
    public int getUserId() { return userId; }
    public void setUserId(int userId) { this.userId = userId; }
    public int getProductId() { return productId; }
    public void setProductId(int productId) { this.productId = productId; }
    public int getRating() { return rating; }
    public void setRating(int rating) { this.rating = rating; }
    public String getComment() { return comment; }
    public void setComment(String comment) { this.comment = comment; }
    public int getStatus() { return status; }
    public void setStatus(int status) { this.status = status; }
    public Date getCreatedAt() { return createdAt; }
    public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; }
    public String getUsername() {return username;}
    public void setUsername(String _username) {username=_username;}
    public String getProductName() {return productName;}
    public void setProductName(String productName) {this.productName = productName;}
}
